<%@ page import="java.util.ArrayList" %>
<%@ page import="el.Monster" %><%--
  Created by IntelliJ IDEA.
  User: xiaofeng
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    ArrayList<Monster> monsterList = new ArrayList<>();
    monsterList.add(new Monster(1,"牛魔王","芭蕉扇"));
%>
<table bgcolor="#ffe4c4" border="1px" width="300px">
    <tr>
        <th>id</th>
        <th>名字</th>
        <th>技能</th>
    </tr>
    <%
        for (int i = 0; i < monsterList.size(); i++) {
            Monster monster = monsterList.get(i);
    %>
    <tr>
        <td><%=monster.getId()%></td>
        <td><%=monster.getName()%></td>
        <td><%=monster.getSkill()%></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
